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 Greg Couch, 7 years ago

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"

comment:2 by pett, 7 years ago

Component: UnassignedTest Framework

comment:3 by Greg Couch, 7 years ago

Updated build tools to run tests after making ChimeraX.

comment:4 by Greg Couch, 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 Conrad Huang, 7 years ago

Milestone: 0.81.0

comment:6 by Greg Couch, 5 years ago

Resolution: fixed
Status: assignedclosed

Developers need to add their own tests now :-)

Note: See TracTickets for help on using tickets.