elective-stereophonic
elective-stereophonic
which features need more test coverage?
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: which features need more test coverage?  (Read 1359 times)

andm

  • Newbie
  • *
  • Karma: +2/-0
  • Offline Offline
  • Posts: 2
    • View Profile
which features need more test coverage?
« on: May 05, 2015, 05:32:20 am »

Hello,

What features of NXT do you think need more tests?
I am considering to try writing some automated tests.

I have no experience of programming NXT-stuff but would like to get involved into it (primarily testing).
What do you think a newcomer should first look at?

Thanks in advance!

Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: which features need more test coverage?
« Reply #1 on: May 05, 2015, 07:49:33 am »

The current tests are here https://bitbucket.org/JeanLucPicard/nxt/src/562d83ed111a99db23a589ce58194c4f1ae054bf/test/java/nxt/?at=master
The actual 'real' tests (that other folder is the starting folder) are in the http, crypto and peer folders.

All in all it's just a handful of tests and the topics tested are fairly limited. For instance you will not find tests for: payments, messages, aliases, asset exchange, account info etc.
So those topics are good places to start writing tests for i guess.

The framework used in NXT server is called Junit so you need to understand that but by looking at the other tests then you'll see what to do.

I've started a topic a few days ago about testsing but got zero replies. From what I'm seeing the other 2.0 players have much wider test coverage.
https://nxtforum.org/general/what-is-the-state-of-testing-in-the-other-big-2-0-players/

Another topic that seems to have no tests is the client, it's written in javascript and HTML I can imagine it's vast javascript libs can use some unit tests too.
Logged
HEAT: DEX | SDK | HOME

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: which features need more test coverage?
« Reply #2 on: May 05, 2015, 08:48:49 pm »

We need tests of transactions that should fail, of all types. Testing transactions that are valid can easily be done by just rescanning the blockchain, which already contains plenty of valid data, and we do that regularly. But we don't have equivalent tests for invalid transactions.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322
 

elective-stereophonic
elective-stereophonic
assembly
assembly