Comments (3)
I think @omnis-jedi should also weigh in on this.
But, I easily found a fix for this and in doing so I think its a bug.
- When you copy omniscli and omnistap to your startup folder and fire omnis up,
- omniscli gets loaded first,
- and then omnistap library gets launched.
- Classic chicken <-> egg scenario plays out.
- Omniscli.Startup_Task is dependant on the omnistap.kgTapTask, but omnistap isn't loaded up so it wont inherit anything and omnis wont complain.
- omnistap library then gets launched and its Startup_Task is fired up.
- But the omniscli task is still the same, unless its relaunched, which will properly construct it (with inheritance), its inherited methods wont be active.
Now if you try to run a test on the omniscli library, it will fail at wgOmnisTap.$_getTaskForTesting line# 8. Why? because the omniscli library's Startup_Task didn't construct properly since omnistap library at that time wasn't available.
So, to remedy this, modify omnistap.Startup_Task we test to see if the omniscli is loaded and if so relaunch it. that takes care of the inheritance issue from omniscli's perspective.
Not sure if this qualifies as a bug or not.
Another issue I found is in omnistap.k1Super, it inherits kgTapTask, but it never "instantiates" its construct or the inheritance is broken. This can be easily seen when you hover over the uoLog task variable, its not constructed.
Now I have the omnistap library patched up in my library and will post my changes to this repo if @omnis-jedi approves them.
from omniscli.
@Frogli the way we handle this is to deploy omnisci.lbs
and omnistap.lbs
outside the startup folder. When our application library launches, one of the first things it does is to opens these libraries. This ensures everything is loaded in the right order
Another solution is to use the https://github.com/PISL/omnis-launcher project and specify your library's load order.
However, I want to be sure I know exactly what you're running into. Are you looking to add tests to omniscli.lbs
directly? I can see where #9 solves that specific dependency, which is useful in itself, but I don't follow how it helps with application testing.
from omniscli.
No I do not add tests to the omniscli.lbs. Eg I have a production library named omniSql.lbs and a test library omniSql_test.lbs. I think I will give the omnis-launcher project a try. Thanks for the suggestion!
from omniscli.
Related Issues (6)
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 omniscli.