We need to set up a test framework for this module and add tests as we complete features.
Discussions on how to do this without the integration to Tripletex needs to go here.

Comments

reswild’s picture

I can perhaps set up a JSON server that we can use for testing. I'll look into it.

stenjo’s picture

Not sure of the benefit from that. You then have to create responses identical to what Tripletex is providing now. Might be a better way to agree with Tripletex on a more permanent test account that does not expire in 30 days as all free ones does.

stenjo’s picture

Just committed the framework for testing through tripletex.test file. Very plain and narrow test so far: Just testing if the settings page is available when logged in.

stenjo’s picture

Have approached Tripletex to ask for a more permanent testing interface for the automatic tests to be run.

stenjo’s picture

Status: Active » Fixed

Testing framework is now in place.
I suggest we make it an habit of adding a new test to the tripletex.test file every time we add a feature or solve an issue in this queue. This way we will continually increase the test coverage and make sure the test is up-to-date.
I suggest adding something like this:

 /**
   * Test for issue #1459802:Configurable invoice sequence start
   */
  public function testTripletexChangeInvoiceNumberStart() {
  }

Comments and suggestions are welcome

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.