Opened 7 years ago
Closed 5 years ago
#1149 closed defect (fixed)
bundles need test suites
Reported by: | Greg Couch | Owned by: | Greg Couch |
---|---|---|---|
Priority: | major | Milestone: | 1.0 |
Component: | Test Framework | Version: | |
Keywords: | Cc: | chimera-programmers@… | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
This ticket addresses pre-release testing, that is testing that is done as part of the build process after the ChimeraX application is built.
The plan is to repurpose the bundle "test" target to run:
$(CHIMERAX_EXE) --exit --nogui test.cxc
If the test.cxc file is there. In the test.cxc file, it should open any data that is needed, and then do every command that the bundle provides. In addition, there will be a "test" target in the top-level directory that would invoke all of the bundle tests. Docs could have a "test" target too that would have all of the Quickstart commands in it.
Change History (6)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Component: | Unassigned → Test Framework |
---|
comment:4 by , 7 years ago
Tests need to be cxtest*.cxc or cxtest*.py. test*.py conflicts with Python's unittest code that is invoked when building a wheel.
comment:5 by , 7 years ago
Milestone: | 0.8 → 1.0 |
---|
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Developers need to add their own tests now :-)
Updated bundle test targets to run all test*.cxc and test*.py scripts. Recommending having a test.cxc that naively runs each command in the bundle, and separate test###.cxc scripts for particular bugs. Or you could have once test script per-command, or .... Just have tests.
Still to do: (1) have command scripts stop with the first traceback -- and add ability to ignore errors with keyword, (2) modify build tools to run tests after finishing "make install"