Comments (4)
- Build test harness
- Load FVDP tests
- Devise tests for past bugs and regressions
- Devise tests for bugs filed against other IMEs
- Remove old UI-based test harness
- Unit tests for
ckSpell()
- Fuzzing?
from avim.
Travis now runs all the unit tests, including the entire FVDP corpus, on each push. These tests only exercise the transformer; we’re lacking coverage of the overlay and frame scripts. To test those, we’ll need some way of installing the extension into Firefox via the command line, and we’ll need some way to send keypress events to Firefox (headless testing?).
from avim.
I found Browserify can simulate a browser in command line: http://www.rexfeng.com/blog/2014/07/how-to-unit-test-your-js-and-use-it-in-the-browser/
Hope this help
from avim.
Thanks for the tip. Browserify is good for automated testing of a webpage in a browser environment. Travis already tests the only script that can be embedded in a webpage – transformer.js – in the exact same JavaScript environment as Firefox. What I'm mainly interested in is ensuring that the non-webpage parts – the extension itself – get testing.
Now that I've removed the old test harness from the bootstrapped branch, the outstanding task is to get Travis to run its built-in headless Firefox installation with a profile that includes AVIM. Perhaps node.js would be handy for processing a Web form that accepts input from this headless Firefox and relays it to the test harness.
The main benefit of such a setup would be that we would know immediately when Firefox removes a low-level API (#125) or a WYSIWYG editor library like Ace changes its API. Unfortunately, the most fragile part of AVIM historically has been support for Web apps like Google Docs and iCloud, where we rely on internal routines or IDs that could change without notice. These apps require accounts; I suspect it might not be kosher to set up an iCloud account essentially for automated testing of itself.
from avim.
Related Issues (20)
- Drop Firefox, Thunderbird support HOT 6
- Diacritics disappear in CodeMirror on GitHub HOT 4
- Avim doesn't work when I'm editing README.md file of repository on github.com page HOT 1
- Change caret color when AVIM is enabled
- Issue with Firefox 55.0.3 HOT 4
- ff 58 HOT 1
- update for firefox 57 HOT 1
- Overlays not initializing in Thunderbird 58
- Warnings about versioned JavaScript HOT 2
- Migrate test harness off deprecated XPCOM interfaces
- Remove in-application test harness
- Set default preferences in code
- Toolbar button is unlabeled in Waterfox
- Broken in Thunderbird 60 HOT 1
- Incompatible with Thunderbird 63 HOT 2
- Errant apostrophes in Google Docs
- Arcane Office
- addons-linter fails on CI HOT 1
- Hỗ trợ chính thức cho PaleMoon HOT 3
- Dead keys duplicate words on Facebook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avim.