Comments (3)
node-opcua loads approximately in 300ms on my computer.
If you are only using the client API, you could gain 25% to 30% load time by just using
"node-opcua-client" instead of "node-opcua".
Loading the server and address-space API is unnecessary if you are using the Client API.
Alternatively, you could use a different test framework ( mocha or vitest)
- node-opcua is using mocha, and we can parallel all test effectively,
- I am been experiencing with vitest lately and find it amazing.
from node-opcua.
Thanks for the tips.
In integration testing I am using both client and server.
I have found a jest runtime which will disable the isolation between test files:
https://www.npmjs.com/package/@m-abboud/hella-fast-jest-runtime
From its description:
The core problem that this is addressing is that jest runs test suites in isolation from each other. So for every test file you have jest has to reload many modules and setup a new test env which can be very slow at least on some projects especially ones using jsdom. Running test suites in isolation is of course helpful because it helps prevent tests interfering with each other which can be a real pain to debug and track down, but I've found that this type of problem is quite rare. The trade off of having way faster tests over these occasional test bugs is way worth it to me and probably other people too.
from node-opcua.
Thank for the tip. Let's close for now.
from node-opcua.
Related Issues (20)
- Allow the nodeIdNameSeparator in the NamespaceOptions of the node-opcua-address-space to be configurable HOT 2
- Client is connected but no more changes are retrived from monitored items after some hours HOT 13
- [NODE-OPCUA-E11] message size 16385 exceeds the negotiated message size 16384 nb chunks 1. HOT 9
- Timestamps not updating in latest versions HOT 1
- After updating node-opcua, an error during client.createSession process occurs. Old versions works fine. HOT 4
- Difference in clocks between client and server cause problems HOT 4
- Loading nodeset files via string/stream/..
- maxStringLength HOT 3
- After writing scripts no longer worked, stopping connection
- nodeopcua Client fails when "certificate" User authentication is used.
- node-opcua Client does not retry connection ,when server is not available , when security Policy other than NONE is used HOT 1
- AWS Lambda cannot create PKI folder for opcua-client
- Client fails to generate default certificate when connecting to server in Electron main process.
- notification in server HOT 2
- node-opcua server has problems handling nodeset file containing UAVariable of DataType="RolePermissionType
- nodeopcua wrong error prints when crawler read is attempted on a unknown NodeId from the server. HOT 1
- How to edit object values ?
- nodeopcua client stack fails to report new subscription ID recreated back to application, after reconnection to server
- Changing Datatype of a Variable Dynamically
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 node-opcua.