What is the reason that tests can be written in both? Is there any distinct advantage to using one over the other?
Or is one in general easy to work with?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
I would use the analogy of unit testing vs integration testing to distinguish these two methods.
In my opinion, a Truffle solidity test can be used to cover a small piece of code, basically you will be able to test every single function in your contract in an isolated way (isolated from Web3 essentially).
I wrote a blogpost about it.