Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow context in named templates #76

Open
wants to merge 107 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
07c0c60
PR-76 issue #66 allow context in named templates
cirulls Feb 21, 2016
26a4292
Merge pull request #1 from cirulls/develop
Feb 21, 2016
b0b3001
expath#40 fix code coverage
Aug 10, 2016
91be55e
Merge branch 'develop'
Aug 10, 2016
4a26210
add Travis CI configuration
Aug 11, 2016
c2fdcad
add sudo required
Aug 11, 2016
daee7d5
install bats from GitHub
Aug 11, 2016
070cde7
# This is a combination of 4 commits.
Aug 14, 2016
3c40268
implement JUnit report (#2)
Aug 14, 2016
feb001c
replace saxon:serialize() with fn:serialize #81
Aug 17, 2016
07fdde6
add support for Saxon-9-1-0-8 (Saxon-B) #79
Aug 17, 2016
bc936b7
rename Saxon B jar file as per standard convention (#79)
Aug 17, 2016
df4959b
run tests with Travis CI (#5)
Aug 11, 2016
7e7199b
update link to Travis status page
Aug 21, 2016
6dc9376
add documentation
Aug 21, 2016
954a5ea
merge feature/junit into develop
Aug 21, 2016
0c7a0a0
Merge branch 'develop'
Aug 21, 2016
08cd006
update Travis config for master
Aug 21, 2016
4d82109
merge branch feature/saxon-b
Aug 21, 2016
1eb4b0c
Merge branch 'develop'
Aug 21, 2016
1a4377e
add XSLT 3.0 support #9 (#10)
Aug 29, 2016
cd47860
Merge branch 'develop'
Aug 29, 2016
116c49c
initial commit for bats test #12
Sep 29, 2016
65d9fc2
update Travis configuration #12
Sep 29, 2016
2b21942
test failing test #12
Sep 29, 2016
be28008
run only bats tests
Sep 29, 2016
7295cba
review bats test suite
Sep 29, 2016
8a41236
set TEST_DIR
Sep 29, 2016
86daf71
modify .travis
Sep 29, 2016
7e821e9
remove export in test without TEST_DIR
Sep 29, 2016
48b3dda
test failing tests
Sep 29, 2016
704b149
run XSpec test suite #12
Sep 29, 2016
46924d1
Fixed TEST_DIR management (#13)
c4s4 Sep 29, 2016
fab22d7
add output when test fails
Sep 29, 2016
7b0af25
update Travis configuration
Sep 29, 2016
f870574
override TEST_DIR when set and add bats test (#12 #13)
Sep 29, 2016
706b4e6
fix typo
Sep 29, 2016
53c2b7a
Merge branch 'develop'
Sep 29, 2016
7f3fef3
Fixed TEST_DIR management for winwdows (#14)
c4s4 Oct 17, 2016
63e1495
print message with location of HTML report (#16)
Oct 17, 2016
fdbcf4c
Bugfix/issue67 (#17)
Oct 30, 2016
7303f0d
Fix travis configuration #19
Dec 3, 2016
86e9bbf
use lazy evaluation to fix data type error (#24)
Dec 10, 2016
dcf41fd
reinstate copyright notes #23
Dec 10, 2016
8931b37
force to return the string value of node to support other data types …
Dec 12, 2016
670fcfe
retrieve saxon from maven repo (#34)
Dec 23, 2016
4449512
runner script for XSpec test suite does not detect compiling issues (…
Dec 27, 2016
5a44674
Fix regression bug introduced in v0.4.0-RC (#38)
Jan 1, 2017
70812b3
Revamp xspec.bat (#28)
AirQuick Jan 3, 2017
fe09541
Run tests on AppVeyor (#41)
AirQuick Jan 4, 2017
67461a0
test/xspec-junit.xspec fails with Saxon 9.6.0.10 (#40)
AirQuick Jan 4, 2017
5d6459b
Test with Saxon n and n-0.1 (#43)
AirQuick Jan 5, 2017
1a92c65
remove -j option in tests #39 (#49)
Jan 8, 2017
2a7057b
Run tests in Travis for both Saxon HE 9.7.0-14 and 9.6.0-7 (#45)
Jan 8, 2017
187f157
Always provide xs:boolean in $impl:successful expression (#48)
AirQuick Jan 8, 2017
ba5f97c
add bats test issue #46 / pr #48 (#51)
Jan 8, 2017
a6bb235
remove old references to xspec.googlecode.com #56
Jan 13, 2017
33684b7
remove old references to google repos #56 (#66)
Jan 14, 2017
82a3d49
Remove output and add directories to .gitignore (#65)
Jan 14, 2017
441eae6
Add tests for issue #46 / pr #48 for Windows (#54)
AirQuick Jan 14, 2017
5aa7644
update README and LICENSE files #52 (#53)
Jan 15, 2017
f2db6e4
Run tests with both Saxon 9.6.0-7 and 9.6.0-10 (#68)
tofi86 Jan 16, 2017
9b94529
Report all the basic types and valid numeric expressions (#58)
AirQuick Jan 19, 2017
01c7e25
Keep type annotations in $impl:test-items (#63)
AirQuick Feb 1, 2017
72a4c71
Run tests with Saxon 9.7.0-15 (#77)
AirQuick Feb 14, 2017
ad6b041
Revert harnesses to v0.3.0 and add UTF-8 encoding #74 #72 (#76)
Feb 16, 2017
bae9ce1
Consolidate cleanup tasks in batch script(#73)
AirQuick Mar 4, 2017
cd1908a
Highlight the link target (#79)
AirQuick Mar 4, 2017
ef2d44c
Run XProc test on AppVeyor (#86)
AirQuick Mar 7, 2017
f4811a5
Align Travis configuration with AppVeyor in #86 (#96)
Mar 7, 2017
a5ceb3a
Get the URLs back, adapted.
fgeorges Mar 7, 2017
a93e273
Fix indent.
fgeorges Mar 7, 2017
388c62e
Revive @assert and @context.
fgeorges Mar 7, 2017
74c9f0c
Merge branch 'master' of github.com:xspec/xspec
fgeorges Mar 7, 2017
8946ab5
revert to commit f4811a5 as tests are failing on master #97 (#101)
Mar 15, 2017
74312e1
add XProc harness for Saxon from v0.4.0 (#108)
Mar 15, 2017
2f71caa
Display result.log on test failure (#110)
AirQuick Mar 29, 2017
359b721
Update Saxon versions (#116)
AirQuick Apr 8, 2017
e99b5a2
Make XProc testing command lines more portable (#98)
AirQuick Apr 8, 2017
120b331
Separate common tests (for XSLT and XQuery) from generate-tests-utils…
AirQuick Apr 9, 2017
0ef7b8c
Added documentation for attributes in RNG schema (#115)
raducoravu Apr 10, 2017
cb4b235
Migrate test:tests to test/*.xspec (#118)
AirQuick Apr 10, 2017
701bd34
Stop using functx namespace (#104)
AirQuick Apr 16, 2017
a2b8e59
Do not copy unused namespaces from format utils to output (#91)
AirQuick Apr 16, 2017
9f28df6
xspec.bat (Windows) fails when path contains parentheses
AirQuick Apr 16, 2017
4e99c1d
Escape apostrophe in URI (#119)
Apr 17, 2017
942e26f
Run tests with XML Calabash 1.1.16-97 (#123)
AirQuick Apr 20, 2017
1101540
add checks for saxon script + test (#124)
Apr 22, 2017
6b6d07b
add Schematron support (#105)
vincentml May 4, 2017
e318391
Add documentation for Schematron support (#129)
May 25, 2017
436ceb0
add XProc harness for BaseX standalone (review #103) (#136)
Jun 10, 2017
c25a849
From pull request #129 discussion: suppress warning message and clean…
vincentml Jun 26, 2017
a602c4b
Allow Schematron XSLTs to be provided externally (#133)
vincentml Jun 26, 2017
a032c19
End-to-end test for XSpec itself (#81)
AirQuick Aug 29, 2017
73aa6f9
Add TODO comments for focus/pending tests in #4 (#61)
AirQuick Aug 30, 2017
cc3a18b
Run tests with latest Saxon HE 9.7 maintenance release (9.7.0.20) (#146)
AirQuick Aug 31, 2017
9608693
Add end-to-end tests for testing failing and pending functionalities
AirQuick Oct 1, 2017
5f2cf8c
Remove JAVA_OPTIONS message from output in Travis (#148)
Oct 1, 2017
4031674
Replace regression tests for #50 and #55 as end-to-end tests (#145)
AirQuick Oct 1, 2017
7205f22
Balisage improvements to Schematron support (#149)
vincentml Nov 6, 2017
78f63a6
Run tests with Saxon 9.8.0.7, 9.7.0.21 and 9.7.0.19 (#157)
AirQuick Dec 28, 2017
c76d4fd
Improvements to HTML report (#135)
vincentml Jan 7, 2018
ffd5eda
Add tests for CSS inline (#159)
Jan 24, 2018
63cf95d
Add Ant build support for Schematron (#160)
Feb 4, 2018
c9fdb91
Add a pom file to publish XSpec as a Maven artifact (#156)
cmarchand Mar 18, 2018
b5707e9
Include path to the test source files in all report formats (#188)
vincentml Apr 2, 2018
0e21fca
Enhance coverage-report.xsl to be able to specify css location (#194)
cmarchand Apr 9, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests for CSS inline (#159)
* Add tests for shell and batch scripts for #135
Sandro Cirulli authored Jan 24, 2018
commit ffd5eda3cea37a0fbd40791fef17e1ec31506607
10 changes: 10 additions & 0 deletions test/xspec-bat.cmd
Original file line number Diff line number Diff line change
@@ -381,6 +381,16 @@ setlocal
call :teardown
endlocal

setlocal
call :setup "HTML report contains CSS inline and not as an external file #135"

call :run ..\bin\xspec.bat ..\tutorial\escape-for-regex.xspec
call :run java -cp "%SAXON_CP%" net.sf.saxon.Query -s:..\tutorial\xspec\escape-for-regex-result.html -qs:"declare default element namespace 'http://www.w3.org/1999/xhtml'; concat(/html/head[not(link[@type = 'text/css'])]/style[@type = 'text/css']/contains(., 'margin-right:'), '
')" !method=text
call :verify_line 1 x "true"

call :teardown
endlocal

echo === END TEST CASES ==================================================

rem
7 changes: 7 additions & 0 deletions test/xspec.bats
Original file line number Diff line number Diff line change
@@ -319,3 +319,10 @@ teardown() {
echo $output
[[ "${output}" =~ "src/harnesses/harness-lib.xpl:267:45:passed: 1 / pending: 0 / failed: 0 / total: 1" ]]
}


@test "HTML report contains CSS inline and not as an external file #135" {
run ../bin/xspec.sh ../tutorial/escape-for-regex.xspec
grep '<style type="text/css">' ../tutorial/xspec/escape-for-regex-result.html
grep 'margin-right:' ../tutorial/xspec/escape-for-regex-result.html
}