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

Consolidate path tests #258

Merged
merged 48 commits into from
Oct 7, 2018
Merged

Conversation

AirQuick
Copy link
Member

@AirQuick AirQuick commented Aug 6, 2018

xspec.bats (a test script for *nix) and xspec-bat.cmd (a test script for Windows) have 2 tests for path related issues (#84 and #119).

Though they need to check the same things, each of them runs XSpec individually (with a different path).

This pull request consolidates them and runs XSpec just once (with a combined path).

No code change in XSpec core.


This pull request derives from #257. So needs to be handled after that.

@AirQuick AirQuick added the test label Aug 6, 2018
@AirQuick AirQuick added this to the v1.1.0 milestone Aug 6, 2018
@AirQuick AirQuick requested a review from cirulls August 6, 2018 07:08
@AirQuick
Copy link
Member Author

AirQuick commented Aug 6, 2018

  • This pull request just simplifies the test scripts. It doesn't touch the XSpec code. None of the existing tests are removed as a result of the consolidation.
  • The consolidated test is able to catch test failures. (demonstrated on Travis and AppVeyor)
  • This pull request makes it easy to handle some pending pull requests (towards Is it possible to apply Saxon configuration files?  #235 in particular).

So I think this pull request can be merged (after #257) safely without reviewing details, or I'd like to merge this by myself in a few days.

…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
…e-path-tests

# Conflicts:
#	test/xspec-bat.cmd
#	test/xspec.bats
Copy link
Member

@cirulls cirulls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me and it is in line with the pull requests previously merged. It is useful to consolidate these tests in order to speed up the execution of the test suite on Travis and AppVeyor (we now have many more tests to run and the test suite has increased the total execution time, especially on AppVeyor).

I reviewed this pull request by inspecting the code, making sure that both tests are covered in the path, and running the test suite locally on Linux and Windows.

I'm merging this into master.

@cirulls cirulls merged commit c6c6b95 into xspec:master Oct 7, 2018
@AirQuick AirQuick deleted the consolidate-path-tests branch October 7, 2018 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants