Skip to content

Files

Latest commit

1dd6438 · Jan 28, 2025

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 28, 2025
Aug 6, 2021
Aug 6, 2020
Sep 13, 2023
Mar 2, 2022
Mar 16, 2021
May 11, 2022
Apr 30, 2021
May 20, 2023
Jul 24, 2020
Mar 1, 2021
Feb 6, 2023
Mar 1, 2021

Titanium Mocha Suite

The unit testing app for Titanium, built using TiMocha.

Example

describe('Your test suite', function () {
  it('Your unit test', function () {
    should(Ti.Platform).have.readOnlyProperty('apiName').which.is.a.String();
    should(Ti.Platform.apiName).be.eql('Ti.Platform');
  });
});

Match images

If you want to use matchImage to visually compare an UI element with an image you use the method and take the image from /data/user/0/com.appcelerator.testApp.testing/app_appdata/snapshots from the emulator after the first run. It will put the images in that folder you can match against in the next run.

References

License

Apache 2